/**
 * Created by wzh on 2016/5/27.
 */

'use strict'
swan_pc
    .controller('LeftMenuController',function ($scope, $location, $state, Auth) {
        $scope.isAuthenticated = Auth.isLoggedIn;
        $scope.active=1;
        $scope.changeActive=function(option){
            $scope.active=option;
        }
    });

var left_sub=function (id) {
    var ele=new Array();
    ele[1]=document.getElementById("leftsub1");
    ele[2]=document.getElementById("leftsub2");
    ele[3]=document.getElementById("leftsub3");
    ele[4]=document.getElementById("leftsub4");
    for (var i=1;i<5;i++){
        if (id==i) {
            ele[i].style.display=(ele[i].style.display=="block")?"none":"block";
        }
        else ele[i].style.display="none";
    }
}





